﻿@model EM.OA.Portal.Models.CarApplyModels
@{
    Layout = "~/Views/Shared/_LayoutContent.cshtml";
}
<script type="text/javascript"  src="~/Scripts/page/Car/CarApply.js"></script>
<div>
    <span>车牌号码：</span>
    <input class="easyui-combobox" id="comb_CarNumber" name="comb_CarNumber" data-options="url:'/CarInfo/GetEntityList',
        valueField:'id',textField:'text',onSelect: function(rec){ creatApplyList(rec.id);}">
    <input type="button" value="预约" onclick="apply()" /><br />

    <div style="height: 32px; line-height: 32px; padding-left: 15px; color: green">
        <span style="color: green">图例：</span>
        <img src="../Images/xinghsb.gif" width="19" height="18" />&nbsp;未预约&nbsp;&nbsp;
        <img src="../images/xingcsb.gif" width="19" height="18" />&nbsp;待批准&nbsp;&nbsp;
        <img src="../images/xinglsb.gif" width="19" height="18" />&nbsp;已批准
    </div>

    @*日期时间列表*@
    <span id="content"></span>
    @*车辆预定*@
    <div id="dlg" class="easyui-dialog" style="width: 580px; height: 420px; padding: 10px 20px"
        closed="true" buttons="#dlgapply-buttons" modal="true" resizable="true">
        <form id="fm" method="post">
            @Html.HiddenFor(m => m.ApplyID)
            <table>
                <tr>
                    <td>车牌号码</td>
                    <td>
                        <input type="hidden" name="CarID" id="CarID" />
                        <input class="easyui-validatebox" type="text" id="CarNumber" name="CarNumber" />
                    </td>

                </tr>
                <tr>
                    <td>@Html.LabelFor(m => m.WithCarNumber)</td>
                    <td>@Html.TextBoxFor(m => m.WithCarNumber, new { @class = "easyui-validatebox" })</td>
                </tr>
                <tr>
                    <td>@Html.LabelFor(m => m.ApplyDate)</td>
                    <td>
                        <input class="easyui-datebox" id="ApplyDate" name="ApplyDate" />
                    </td>
                </tr>
                <tr>
                    <td>@Html.LabelFor(m => m.ApplyStartTime)</td>
                    <td>
                        <input type="hidden" id="ApplyStartTime2" name="ApplyStartTime2" />
                        <input id="ApplyStartTime22" class="easyui-timespinner" data-options="required:true,showSeconds:false" style="width: 150px">
                    </td>
                </tr>
                <tr>

                    <td>@Html.LabelFor(m => m.ApplyEndTime)</td>
                    <td>
                        <input type="hidden" id="ApplyEndTime2" name="ApplyEndTime2" />
                        <input id="ApplyEndTime22" class="easyui-timespinner" data-options="required:true,showSeconds:false" style="width: 150px">
                    </td>
                </tr>
                <tr>
                    <td>@Html.LabelFor(m => m.Destination)</td>
                    <td>@Html.TextBoxFor(m => m.Destination, new { @class = "easyui-validatebox", @required = "true" })</td>
                </tr>
                <tr>
                    <td>@Html.LabelFor(m => m.ApplyMileage)</td>
                    <td>@Html.TextBoxFor(m => m.ApplyMileage, new { @class = "easyui-validatebox", @required = "true"})</td>
                </tr>
                <tr>
                    <td>
                        @Html.LabelFor(m => m.IsNeedDriver, new { @class = "checkbox" })
                    </td>
                    <td>
                        @Html.CheckBoxFor(m => m.IsNeedDriver)</td>
                </tr>
                <tr>
                    <td>@Html.LabelFor(m => m.Driver)</td>
                    <td>@Html.TextBoxFor(m => m.Driver, new { @class = "easyui-validatebox" })</td>
                </tr>
                <tr>
                    <td>@Html.LabelFor(m => m.UseCarReason)</td>
                    <td>@Html.TextAreaFor(m => m.UseCarReason, new { @style = "width:90%", @cols = "50", @rows = "10", @class = "easyui-validatebox", @required = "true" })</td>
                </tr>

            </table>

        </form>

        <div id="dlgapply-buttons">
            <a href="#" class="easyui-linkbutton" iconcls="icon-ok" onclick="save()">保存</a>
            <a href="#" class="easyui-linkbutton" iconcls="icon-cancel" onclick="javascript:$('#dlg').dialog('close')">取消</a>
        </div>
    </div>
    

</div>
